package com.onlinemathuracrud.model;

import org.hibernate.Session;

public class Tester{
	
	public static void main(String[] args) 
	{
		
		
		//Open the hibernate session
		Session session = HibernateUtil.getSessionFactory().openSession();
	
		session.beginTransaction();
		
		
		Temple tt = new Temple();
		
		
	//	tt.setCity("vrindavan");
		tt.setName("bankevihari");
		tt.setHistory(" radhe radhe");
		tt.setTiming(new Timing("5pm to 9pm","8am to 12pm","5pm to 9pm","8am to 12pm"));
		
		session.save(tt);
		session.getTransaction().commit();
	
	
		session.close();
	}
	
	
}
